<?php
/**
* @author Bimal Poudel
* @package Smarty Framework
* @support http://www.odesk.com/users/~~dd91d11caed0cdce
* @contact http://www.sanjaal.com
* @company Sanjaal Corps
*/

require_once('inc.config.php');

$original_image = 'originals/branch.jpg';
$cropnail_image = 'cropnails/branch.jpg';
$crop_pattern = 0;

# The actual resizing takes here
$cropnail = new cropnail(100, 200);
$cropnail->resize($original_image, $cropnail_image, $crop_pattern);

# See reports
header('Location: examples/branch.php');
?>